import { createRouter, createWebHashHistory } from 'vue-router'

//路由数组
const routes = [
    {
        path: "",
        name: "",
        component: () => import('@/pages/test/test-input.vue'),
        children: []
    }
]

//路由对象
const router = createRouter({
    history: createWebHashHistory(process.env.BASE_URL),
    routes //上面的路由数组

})

//导出路由对象，在main.js中引用
export default router